#pragma once
#include "VirtualFileManager.h"

class IVirtualFileManager;
class CVirtualFile
	:public IVirtualFile
{
	friend class CVirtualFileManager;
public:
	CVirtualFile();
	~CVirtualFile(void);
	bool Read(void *buffer, unsigned int readlen);
	void Seek(__int64 offset, FILEPOS origin);
	__int64 GetLength();
	void *GetData();
	bool WriteFile(const char *filename);
	void Close();

private:
	FILEINFO m_stInfo;
	char *m_pBuffer;
};
